package constant

// 订单状态
const (
	OrderStatusNotPay    = 1  // 未支付
	OrderStatusWaitSend  = 2  // 待发货
	OrderStatusWaitTake  = 5  // 待收货
	OrderStatusFinished  = 10 // 已完成
	OrderStatusRefunding = 11 // 退款中
	OrderStatusRefunded  = 12 // 已退款
)

var orderStatusCN = map[int]string{
	OrderStatusNotPay:    "未支付",
	OrderStatusWaitSend:  "待发货",
	OrderStatusWaitTake:  "待收货",
	OrderStatusFinished:  "已完成",
	OrderStatusRefunding: "退款中",
	OrderStatusRefunded:  "已退款",
}

func OrderStatusCN(status int) string {
	if str, ok := orderStatusCN[status]; ok {
		return str
	}
	return "异常"
}
